package cn.bgs.service.impl;

import cn.bgs.dao.ClassroomMapper;
import cn.bgs.pojo.Classroom;
import cn.bgs.service.ClassroomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ProjectName: beisheng
 * @Package: cn.bgs.service.impl
 * @ClassName: ClassroomServiceImpl
 * @Author: Administrator
 * @Description:
 * @Date: 2021/7/21 0021 21:03
 * @Version: 1.0
 */
@Service
public class ClassroomServiceImpl implements ClassroomService {
    @Autowired
    private ClassroomMapper classroomMapper;


    @Override
    public List<Classroom> findClassroom(String region, String buildingNo, String buildingFloor, String classroomNumber, String classroomName, Integer galleryfulMin, Integer galleryfulMax) {
        return  classroomMapper.findClassroom(classroomNumber,classroomName,region,buildingNo,buildingFloor,galleryfulMin,galleryfulMax);
    }

    @Override
    public Integer insertSelective(Classroom classroom) {
        return classroomMapper.insertSelective(classroom);
    }

    @Override
    public Integer deleteByPrimaryKey(List<Integer> list) {
        return classroomMapper.deleteByPrimaryKey(list);
    }

    @Override
    public Integer classroomDelete(Integer pkId) {
        return classroomMapper.classroomDelete(pkId);
    }

    @Override
    public Integer updateByPrimaryKeySelective(Classroom classroom) {
        return classroomMapper.updateByPrimaryKeySelective(classroom);
    }

    @Override
    public List<Classroom> region(String region) {
        return classroomMapper.region(region);
    }

    @Override
    public List<Classroom> buildingNo(String buildingNo) {
        return classroomMapper.buildingNo(buildingNo);
    }

    @Override
    public List<Classroom> buildingFloor(String buildingFloor) {
        return classroomMapper.buildingFloor(buildingFloor);
    }

}
